<?php
/*
* Author: Nguyen Hai Nam
* Plugin: SearchTypePlugin
* Desc	: Introduce pick.vn and sidle pic
* Date	: 12/12/2011
*/
class SearchTypePlugin extends Pick_Core_Plugin{
	
	function SearchTypePlugin(){
		parent::Pick_Core_Plugin();
		$this->namePlugin = "searchtype";
		$this->descriptionPlugin = "This is form search for admin system";
	}
	public function getContent(){
		
		$searchTerms = $this->request->element('searchTerms', "");
		$searchStatus = $this->request->element('searchStatus', "");
		$this->template->assign('searchTerms', $searchTerms);
		$this->template->assign('searchStatus', $searchStatus);
		
		# Generate status combobox for Search form
		$listStatus = optionStatus($searchStatus);
		$this->template->assign('listStatus', $listStatus);
		
        // Assign language into template file
        $this->template->assign('lang', $this->lang);
	}
}